<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta http-equiv="content-language" content="zh-CN" />
    <title></title>
    <link rel="stylesheet" type="text/css"  href="/general/testzs/public/static/layui/css/layui.css">
    <link rel="stylesheet" type="text/css"  href="/general/testzs/public/static/layui/css/customer.css">
</head>
<body>
<style>

    .layui-form-item{
        margin-bottom: 0px;
    }
    .float-css-left{
        width: 25%;
        float: left;
    }
    #print {
        float: right;
        margin: 0rem 1rem;
        height: 1.5rem;
        line-height: 1.5rem;
    }

    .view-hide {
        font-size: 1rem;
        color: black;
        border-color: transparent;
    }

    .qm{
        text-align: center;
        border: 1px solid #7575752b;
        font-size: 0.8rem;
    }
    /*这是去掉页眉页脚的，这样打印就不会有第二个页面了*/
    @page {
        size: auto;  /*  */
        margin: 0mm; /* */
    }
</style>
<!--我的-->
<button class="layui-btn" style="margin: 1rem;float: right" id="add_printing" >新增印刷</button>

<div class="layui-fluid" style="clear:both">
    <div class="layui-card">
        <div class="layui-card-body">
            <!-- 表格工具栏 -->
            <form class="layui-form" lay-filter="SearchForm">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">申请单号:</label>
                        <div class="layui-input-inline">
                            <input name="printing_number"  class="layui-input" placeholder="生成单号搜索" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">客户名称:</label>
                        <div class="layui-input-inline">
                            <input name="customer_name"  class="layui-input" placeholder="客户名称" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">订单号:</label>
                        <div class="layui-input-inline">
                            <input name="order_number"  class="layui-input" placeholder="订单号" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">查找选项:</label>
                        <div class="layui-input-inline">
                            <select name="status" >
                                <option value="">全部</option>
                                <option value="1">已完成</option>
                                <option value="2">采购部审批中</option>
                                <option value="3">总经办审批中</option>
                                <option value="4">质检部审批中</option>
                                <option value="5">未通过</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline" style="position: absolute;right: 5rem;">&emsp;
                        <button class="layui-btn icon-btn" lay-filter="SearchForm" lay-submit>
                            <i class="layui-icon">&#xe615;</i>搜索
                        </button>
                    </div>
                </div>
            </form>

            <table style="clear:both" id="printingTable" lay-filter="printingTable"></table>

        </div>
    </div>
</div>




<!--我的印刷单操作-->
<script type="text/html" id="PrintingTool">
    <a class="layui-btn layui-btn-primary layui-btn-sm layui-bg-green" lay-event="detail">查看详情</a>
</script>
<!--重新提交操作对应的类别商品-->
<script type="text/html" id="ArticlesEdit">
    <a class="layui-btn layui-btn-primary layui-btn-sm layui-bg-green" lay-event="edit">编辑</a>
</script>
<script type="text/html" id="EditArticlesHtml">
    <form class="layui-form" action="">
        <div class="layui-form-item layui-row">
                <div class="layui-form-item layui-row">
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">类别:</label>
                        <div class="layui-input-block">
                            <select name="value" id="value_view"  lay-verify="required">
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">名称:</label>
                        <div class="layui-input-block">
                            <input name="name" id="name_view" placeholder="请填写内容" class="layui-input" lay-vertype="message" >
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">特殊要求及备注:</label>
                        <div class="layui-input-block">
                            <input name="special" id="special_view" placeholder="请填写内容" class="layui-input" lay-vertype="message" >
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">内容:</label>
                        <div class="layui-input-block">
                            <input name="articles_content" id="articles_content_view" placeholder="请填写内容" class="layui-input" lay-vertype="message" >
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-filter="EditArticlesButton" id="EditArticlesButton" type="submit" lay-submit>修改</button>
                        </div>
                    </div>
                </div>
        </div>
    </form>
</script>
<!--详情操作-->
<script type="text/html" id="PrintingDetailHtml">

    <form action="" class="layui-form" >
        <div class="layui-form-item layui-row">
            <div class="layui-inline layui-col-md12">
<!--                <button  class="layui-btn icon-btn layui-bg-cyan" id="print">打印</button>-->
                <h2 style="text-align: center;margin-top: 0.5rem;">上海永冠众诚新材料科技(集团)股份有限公司</h2>
                <h6 style="text-align: center;margin-top: 0.5rem;">印刷确认</h6>
                <div class="layui-inline layui-col-md4" style="width: 33.33333333%;float: left">
                    <label class="layui-form-label">客户名称:</label>
                    <div class="layui-input-block">
                        <input name="customer_name" id="customer_name_view" placeholder="请填写客户名称" class="layui-input view-hide" lay-vertype="message" disabled>
                    </div>
                </div>
                <div class="layui-inline layui-col-md4" style="width: 33.33333333%;float: right">
                    <label class="layui-form-label">订单号:</label>
                    <div class="layui-input-block">
                        <input name="order_number" id="order_number_view" placeholder="请填写订单号" class="layui-input view-hide" lay-vertype="message" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-inline layui-col-md3" style="float: left">
                <label class="layui-form-label">是否已收版费:</label>
                <div class="layui-input-block">
                    <input type="radio" name="is_collect_cost_view" value="1" title="是" disabled>
                    <input type="radio" name="is_collect_cost_view" value="0" title="否" checked disabled>
                </div>
            </div>
            <div class="layui-inline layui-col-md4" style="float: left">
                <label class="layui-form-label">币种:</label>
                <div class="layui-input-block">
                    <select name="currency" id="currency_view" lay-verify="required" disabled>

                    </select>
                </div>
            </div>
            <div class="layui-inline layui-col-md4" style="float: left">
                <label class="layui-form-label">版费金额:</label>
                <div class="layui-input-block">
                    <input name="printing_price" id="printing_price_view"  min="0" type="number" placeholder="请输入版费金额" class="layui-input view-hide" lay-vertype="message" disabled>
                </div>
            </div>
            <div class="layui-inline layui-col-md12" style="float: left">
                <label class="layui-form-label">确认内容:</label>
                <div class="layui-input-block">
                    <input name="remarks" id="remarks_view" placeholder="" class="layui-input view-hide" lay-vertype="message" disabled>
                </div>
            </div>
        </div>
    </form>
    <!-- 表格 -->
    <table id="articlesDetail" lay-filter="articlesDetail" class="layui-hide print-table"></table>
        <div>
            <div class="layui-inline layui-col-md12" >
                <div class="layui-inline layui-col-md3 float-css-left">
                    <div class="layui-form-item">
                        <input class="layui-input qm" lay-vertype="message" disabled value="制单人">
                    </div>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <div class="layui-form-item">
                        <input class="layui-input qm" lay-vertype="message" disabled value="采购部">
                    </div>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <div class="layui-form-item">
                        <input class="layui-input qm" lay-vertype="message" disabled value="总经办">
                    </div>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <div class="layui-form-item">
                        <input class="layui-input qm" lay-vertype="message" disabled value="质检部">
                    </div>
                </div>
            </div>
            <div class="layui-inline layui-col-md12" >
                <div class="layui-inline layui-col-md3 float-css-left">
                    <input name="" id="user_name" class="layui-input qm" lay-vertype="message" disabled>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <input name="" id="purchase_tips" class="layui-input qm" lay-vertype="message" disabled>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <input name="" id="general_tips" class="layui-input qm" lay-vertype="message" disabled>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <input name="" id="inspector_tips" class="layui-input qm" lay-vertype="message" disabled>
                </div>
            </div>

            <div class="layui-inline layui-col-md12" >
                <div class="layui-inline layui-col-md3 float-css-left">
                    <input name="" id="create_time" class="layui-input qm" lay-vertype="message" disabled>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <input name="" id="purchase_time" class="layui-input qm" lay-vertype="message" disabled>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <input name="" id="general_time" class="layui-input qm" lay-vertype="message" disabled>
                </div>
                <div class="layui-inline layui-col-md3 float-css-left">
                    <input name="" id="inspector_time" class="layui-input qm" lay-vertype="message" disabled>
                </div>
            </div>

            <div class="layui-inline layui-col-md12" id="reject_status" style="display: none">
                <label class="layui-form-label">驳回原因:</label>
                <div class="layui-input-block">
                    <input name="reject_content_view" id="reject_content_view" placeholder="" class="layui-input view-hide" lay-vertype="message" disabled>
                </div>
            </div>
            <div class="layui-inline layui-col-md12">
                <label class="layui-form-label">采购部确认:</label>
                <div class="layui-input-block">
                    <input name="purchase_content_view" id="purchase_content_view" placeholder="" class="layui-input view-hide" lay-vertype="message" disabled>
                </div>
            </div>
            <div class="layui-inline layui-col-md12">
                <label class="layui-form-label">质检部确认:</label>
                <div class="layui-input-block">
                    <input name="inspector_content_view" id="inspector_content_view" placeholder="" class="layui-input view-hide" lay-vertype="message" disabled>
                </div>
            </div>

            <div class="layui-inline layui-col-md12" id="AgainButton" style="display: none">
                <div class="layui-input-block">
                    <!--                最后真实提交-->
                    <button class="layui-btn" style="float: right;margin-right: 1rem" id="AgainCommit" lay-filter="AgainCommit" type="submit" lay-submit>重新提交</button>
                </div>
            </div>
        </div>
</script>
<!--暂存删除操作-->
<script type="text/html" id="barArticlesBat">
    <a class="layui-btn layui-btn-primary layui-btn-sm layui-btn-danger" lay-event="del">删除</a>
</script>
<!--添加块-->
<script type="text/html" id="addPrintingHtml">
    <form class="layui-form" action="">
    <div class="layui-form-item layui-row">
        <div class="layui-inline layui-col-md12">
            <h2 style="text-align: center;margin-top: 0.5rem;">上海永冠众诚新材料科技(集团)股份有限公司</h2>
            <h6 style="text-align: center;margin-top: 0.5rem;">印刷确认</h6>
            <div class="layui-inline layui-col-md4" style="width: 33.33333333%;">
                <label class="layui-form-label">客户名称:</label>
                <div class="layui-input-block">
                    <input name="customer_name" id="customer_name" placeholder="请选择订单号选中客户名称" class="layui-input" disabled lay-vertype="message">
                </div>
            </div>
            <div class="layui-inline layui-col-md4" style="width: 33.33333333%;float: right">
                <label class="layui-form-label">订单号:</label>
                <div class="layui-input-block">
                    <select name="order_number" lay-filter="order_number" id="order_number"  lay-verify="required">
                    </select>
                    <input name="cCusCode" id="cCusCode" placeholder="隐藏ccuscode" type="hidden">
                </div>
            </div>
        </div>
        <div class="layui-inline layui-col-md3" style="float: left">
            <label class="layui-form-label">是否已收版费:</label>
            <div class="layui-input-block">
                <input type="radio" name="is_collect_cost" value="1" title="是">
                <input type="radio" name="is_collect_cost" value="0" title="否" checked>
            </div>
        </div>
        <div class="layui-inline layui-col-md4" style="float: left">
            <label class="layui-form-label">币种:</label>
            <div class="layui-input-block">
                <select name="currency" id="currency" lay-verify="required">
                    <option value="人民币">人民币</option>
                    <option value="美金">美金</option>
                    <option value="欧元">欧元</option>
                </select>
            </div>
        </div>
        <div class="layui-inline layui-col-md4" style="float: left">
            <label class="layui-form-label">版费金额:</label>
            <div class="layui-input-block">
                <input name="printing_price" id="printing_price"  min="0" type="number" placeholder="请输入版费金额" class="layui-input" lay-vertype="message" >
            </div>
        </div>
        <div class="layui-inline layui-col-md12">
            <label class="layui-form-label">确认内容:</label>
            <div class="layui-input-block">
                <input name="remarks" id="remarks" placeholder="备注（专几号，条码，品牌型号等尽量描写清楚）" class="layui-input" lay-vertype="message" >
            </div>
        </div>
    </div>
    </form>
    <!-- 表格 -->
    <table id="articlesBat" lay-filter="articlesBat" class="layui-hide print-table"></table>

    <form class="layui-form" action="">
        <div class="layui-form-item layui-row">
            <div class="layui-inline layui-col-md3">
                <label class="layui-form-label">类别:</label>
                <div class="layui-input-block">
                    <select name="value" id="value_bash"  lay-verify="required">
                    </select>
                </div>
            </div>
            <div class="layui-inline layui-col-md3">
                <label class="layui-form-label">名称:</label>
                <div class="layui-input-block">
                    <input name="name" id="" placeholder="请填写名称" class="layui-input" lay-vertype="message" >
                </div>
            </div>
            <div class="layui-inline layui-col-md5">
                <label class="layui-form-label">内容:</label>
                <div class="layui-input-block">
                    <input name="articles_content" id="articles_content" placeholder="请填写内容" class="layui-input" lay-vertype="message" >
                </div>
            </div>

            <div class="layui-inline layui-col-md5">
                <label class="layui-form-label">特殊要求备注:</label>
                <div class="layui-input-block">
                    <input name="special" id="" placeholder="请填写特殊要求备注/选填" class="layui-input" lay-vertype="message" >
                </div>
            </div>
            <div class="layui-inline layui-col-md3">
                <label class="layui-form-label">附件:</label>
                <button type="button" class="layui-btn" style="background-color: #3F3F3F" id="test1">
                    <i id="file_name" class="layui-icon">&#xe67c;点击上传</i>
                    <input type="hidden" name="user_file" id="file_src">
                    <input type="hidden" name="file_name" id="user_file_name">
                </button>
            </div>

            <div class="layui-inline layui-col-md2">
                <div class="layui-input-block">
                    <!--提交暂存，用户体验好一些-->
                    <button class="layui-btn" lay-filter="articlesBatAdd" id="articlesBatButton" type="submit" lay-submit>添加</button>
                </div>
            </div>
        </div>

    </form>

    <div class="layui-inline layui-col-md12">
        <div class="layui-input-block">
            <!--                最后真实提交-->
            <button class="layui-btn" style="float: right;margin-right: 1rem" id="PrintingAdd" lay-filter="PrintingAdd" type="submit" lay-submit>提交</button>
        </div>
    </div>

</script>


</body>

<script charset="utf-8" src="/general/testzs/public/static/layui2.6.8/layui.js" ></script>
<script charset="utf-8" src="/general/testzs/public/static/layui2.6.8/jquery.min.js"></script>
<script charset="utf-8" src="/general/testzs/public/static/printing/index/index.js?v=2" ></script>
</html>
